class Rating < ActiveRecord::Base
  set_primary_key :review_id
  belongs_to :review
  belongs_to :rating_criterion

  def rating_name
	rating_scale.get_rating_scale_element(rating_value).name
  end
  
  def rating_scale
    RatingScale.instance
  end
end
